﻿using System;
using System.Collections.Generic;
using System.Text;
using MeTalker.DAL;
using MeTalker.Model;
using System.Data;

namespace MeTalker.BLL
{
    public class SoftwaresBLL
    {
        public static int Delete(int autoid)
       {
           return SoftwaresDAL.Delete(autoid);
       }
        public static int Delete(string autoid)
        {
            return SoftwaresDAL.Delete(autoid);
        }
        public static int Insert(SoftwaresMod softwares)
        {
            return SoftwaresDAL.Insert(softwares);
        }

        public static int Update(SoftwaresMod softwares)
        {
            return SoftwaresDAL.Update(softwares);
        }
        public static SoftwaresMod GetSoftwareByAutoID(string AutoID)
        {
            return SoftwaresDAL.GetSoftwareByAutoIDToMod(AutoID);
        }
        public static SoftwaresMod GetSoftware(string softID)
        {
            return SoftwaresDAL.GetSoftwareBySoftID(softID);
        }

        public static List<SoftwaresMod> GetSoftwares()
        {
            return SoftwaresDAL.GetSoftwaresToList();
        }
    }
}